<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Ajax extends CI_Controller {
	public function index()
	{
		$this->load->view('ajax_view');
	}
	
	public function process()
	{
		
		$this->db->insert('post', $_POST);

		foreach ($_POST as $key=>$age) {
			echo $key,': ',$age,'<br />';
		}
	}
}